<#assign path = request.getContextPath()>
<#assign basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/">

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <title>WebDesign Student - Homeworkdisplay</title>
    
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    
    <!-- bootstrap -->
    <link href="${path}/css/bootstrap/bootstrap.css" rel="stylesheet" />
    <link href="${path}/css/bootstrap/bootstrap-responsive.css" rel="stylesheet" />
    <link href="${path}/css/bootstrap/bootstrap-overrides.css" type="text/css" rel="stylesheet" />

    <!-- global styles -->
    <link rel="stylesheet" type="text/css" href="${path}/css/layout.css" />
    <link rel="stylesheet" type="text/css" href="${path}/css/elements.css" />
    <link rel="stylesheet" type="text/css" href="${path}/css/icons.css" />

    <!-- libraries -->
    <link href="${path}/css/lib/font-awesome.css" type="text/css" rel="stylesheet" />
    
    <!-- this page specific styles -->
<link rel="stylesheet" href="${path}/css/compiled/gallery.css" type="text/css" media="screen" />

    <!-- open sans font -->
    <link href='http://fonts.useso.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css' />

    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<body>
 <style type="text/css">
    	.img{
    		width: 100%;
    		height: 200px;
    	}
    </style>
    <!-- navbar -->
    <div class="navbar navbar-inverse">
        <div class="navbar-inner">
            <a class="brand" href="#"><img src="${path}/img/logo-login.png" /></a><!--LOGO图片-->

            <ul class="nav pull-right">

            <li>
                    <a href="${path}/stu/homeworkState">
                    ${username}
                    </a>
            </li>
            <li>
                    <a href="${path}/common/homeworkDisplay">
                        查看展示作业　　
                    </a>
                </li>
                <div class="copyrights"></div>

                 <li class="hidden-phone">
                    <a href="${path}/stu/changePwd">
                       修改密码
                    </a>
                </li>

                <li class="hidden-phone">
                    <a href="${path}/common/logout"><!--跳转到signin.html页面-->

                       注销
                    </a>
                </li>
            </ul>            
        </div>
    </div>
<!-- end navbar -->
<div class="contentt">
    <div class="container-fluid">
        <div id="pad-wrapper" class="gallery">
            <div class="row-fluid header">
                <h3><font style="font-weight:bold">优秀作业展示</font></h3>
            </div>

            <!-- gallery wrapper -->
            <div class="gallery-wrapper">
                <div class="row gallery-row">
                    <!-- single image -->
                    <#list dsplyhws as dsplyhw>
                    <#if dsplyhw.classify == 1>
                    <div class="span3 img-container">
                    	<div class="img-box">
                            <a href="${dsplyhw.address}">
                            	<img class="img" src="${dsplyhw.imgaddr}"/>
                            </a>
                            <p class="title">
                                <a href="${dsplyhw.address}">
                                       	${dsplyhw.imgname}
                                </a>
                            </p>
                        </div>              
                    </div>
                    </#if>
                    </#list>
                </div>
            </div>
            <!-- end gallery wrapper -->
        </div>
    </div>

    <hr />

    <div class="container-fluid">
        <div id="pad-wrapper" class="gallery">
            <div class="row-fluid header">
                <h3><font style="font-weight:bold">较差作业展示</font></h3>
            </div>

            <!-- gallery wrapper -->
            <div class="gallery-wrapper">
                <div class="row gallery-row">
                    <!-- single image -->
                    <#list dsplyhws as dsplyhw>
                    <#if dsplyhw.classify == 0>
                    <div class="span3 img-container">
                    	<div class="img-box">
                            <a href="${dsplyhw.address}">
                            	<img class="img" src="${dsplyhw.imgaddr}"/>
                            </a>
                            <p class="title">
                                <a href="${dsplyhw.address}">
                                       	${dsplyhw.imgname}
                                </a>
                            </p>
                        </div>              
                    </div>
                    </#if>
                    </#list>
                </div>
            </div>
            <!-- end gallery wrapper -->
        </div>
    </div>
</div>
<!-- end main container -->


<!-- this page scripts -->
<script src="${path}/js/jquery-latest.js"></script>
<script src="${path}/js/bootstrap.min.js"></script>
<script src="${path}/js/theme.js"></script>

</body>
</html>